<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,scale=initial-scale">
    <title>01页面刷新按钮</title>

    <link href="../lib/css/bootstrap.min.css" rel="stylesheet">
    <script src="../lib/js/jquery-3.2.1.min.js"></script>

    <script>
        $(function () {
            $("button").click(function () {
                document.location.reload();
            });
        });
    </script>
</head>
<body>
<div class="container">
    <button type="button" class="btn btn-primary">刷新页面</button>
</div>
</body>
</html>